
angular.module('myApp')
.controller('InputCtrl', ['$scope', function($scope) {
  $scope.value = '';
  const vm = this; // 控制器别名模式
  
  vm.search = function() {
    console.log('事件触发');
    // 业务逻辑
  };
  
  // 显式暴露到 $scope
  $scope.vm = vm;
}])
.directive('elInput', elInput)
.directive('elInputNumber', elInputNumber)
.directive('elInputGroup', elInputGroup)